package org.jeecg.modules.flowermater.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.jeecg.common.aspect.annotation.Dict;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * @Description: 采后物资入库流水表
 * @Author: jeecg-boot
 * @Date:   2022-07-13
 * @Version: V1.0
 */
@Data
@TableName("flower_material_in_log")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="采后物资入库流水表", description="采后物资入库流水表")
public class FlowerMaterialInLog implements Serializable {
    private static final long serialVersionUID = 1L;

	/**主键*/
	@TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "主键")
    private String id;

    /**库房*/
    @Excel(name = "库房", width = 15,dictTable = "flower_storehouse",dicText = "name",dicCode = "code")
    @ApiModelProperty(value = "库房")
    @Dict( dictTable = "flower_storehouse",dicText = "name",dicCode = "code")
    private String storehouse;

    @Excel(name = "成本中心", width = 15 , dicCode = "ch_cost")
    @Dict(dicCode = "ch_cost",dicText = "costText")
    @ApiModelProperty(value = "成本中心")
    private String cost;

	/**物资名称*/
	@Excel(name = "物资名称", width = 15)
    @ApiModelProperty(value = "物资名称")
    private String name;
	/**物资编码*/
	@Excel(name = "物资编码", width = 15)
    @ApiModelProperty(value = "物资编码")
    private String code;
	/**规格*/
	@Excel(name = "规格", width = 15)
    @ApiModelProperty(value = "规格")
    private String specs;
	/**型号*/
	@Excel(name = "型号", width = 15)
    @ApiModelProperty(value = "型号")
    private String modelname;
	/**入库人*/
	@Excel(name = "入库人", width = 15)
    @ApiModelProperty(value = "入库人")
    private String inPersonName;
	/**入库人编码*/
	@Excel(name = "入库人编码", width = 15)
    @ApiModelProperty(value = "入库人编码")
    private String inPersonCode;


    /**入库单位*/
    @Excel(name = "入库单位", width = 15)
    @ApiModelProperty(value = "入库单位")
    @Dict(dicCode = "chm_unit" )
    private String unit;

    /**计量单位*/
    @Excel(name = "计量单位", width = 15)
    @ApiModelProperty(value = "计量单位")
    @Dict(dicCode = "chm_unitMeasure" )
    private String unitMeasure;

    /**数量*/
    @Excel(name = "数量", width = 15)
    @ApiModelProperty(value = "数量")
    private Double num;

    @Excel(name = "单价", width = 15)
    @ApiModelProperty(value = "单价")
    private BigDecimal price;



    @Excel(name = "总价", width = 15)
    @ApiModelProperty(value = "总价")
    private BigDecimal totalPrice;


	/**入库时间*/
	@Excel(name = "入库时间", width = 15, format = "yyyy-MM-dd")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @ApiModelProperty(value = "入库时间")
    private Date inTime;
	/**出库人*/
	@Excel(name = "出库人", width = 15)
    @ApiModelProperty(value = "出库人")
    private String outPersonName;
	/**出人编码*/
	@Excel(name = "出人编码", width = 15)
    @ApiModelProperty(value = "出人编码")
    private String outPersonCode;
	/**出库时间*/
	@Excel(name = "出库时间", width = 15, format = "yyyy-MM-dd")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @ApiModelProperty(value = "出库时间")
    private Date outTime;

	/**入库子表id*/
	@Excel(name = "入库子表id", width = 15)
    @ApiModelProperty(value = "入库子表id")
    private String inid;
	/**出库子表id*/
	@Excel(name = "出库子表id", width = 15)
    @ApiModelProperty(value = "出库子表id")
    private String outid;
	/**创建人*/
    @ApiModelProperty(value = "创建人")
    private String createBy;
	/**创建日期*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @ApiModelProperty(value = "创建日期")
    private Date createTime;
	/**更新人*/
    @ApiModelProperty(value = "更新人")
    private String updateBy;
	/**更新日期*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @ApiModelProperty(value = "更新日期")
    private Date updateTime;
}
